package com.zte.coding.measure;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 14-2-21
 * Time: 上午12:29
 * To change this template use File | Settings | File Templates.
 */

//主题：如何写枚举
public enum LengthUnit {
    MILE(1760 * 3 * 12 * 1), YARD(3 * 12 * 1), FEET(12 * 1), INCH(1);
    private int value;

    private LengthUnit(int value) {
        this.value = value;
    }

    public int getRate() {
        return this.value;
    }
}
